<?php


namespace App\Logic;

use App\Http\Controllers\Api\v1\TLSSigAPIv2;

class TencentLogic
{
    /**
     * @return string
     * @throws \Exception
     * 小程序客服多功能聊天获取userSig接口
     * @yuankai
     */
    public static function sdk()
    {
        $key = config('sdk.key');
        $sdkappid = config('sdk.sdkappid');
        $sing=new TLSSigAPIv2($sdkappid,$key);
        $sdk= $sing->genUserSig('administrator');
        return $sdk;
    }

    /**
     * 账号-小程序客服多功能聊天获取userSig接口
     * @yuankai
     */
    public static function admin()
    {
        $key = config('sdk.key');
        $sdkappid = config('sdk.sdkappid');
        $sing=new TLSSigAPIv2($sdkappid,$key);
        $sdk= $sing->genUserSig('admin');
        return $sdk;
    }
}
